package io.dcloud.uniplugin.bc;

import tech.brainco.crimsonsdk.CrimsonDevice;
import tech.brainco.crimsonsdk.CrimsonSDK;
import tech.brainco.trainsdk.api.device.BcDeviceWrapper;

public class DeviceWrapper implements BcDeviceWrapper {
    CrimsonDevice device;

    public DeviceWrapper(CrimsonDevice device) {
        this.device = device;
    }

    @Override
    public String getFirmwareRevision() {
        return device.getFirmwareRevision();
    }

    @Override
    public String getSerialNumber() {
        return device.getSerialNumber();
    }

    @Override
    public int getConnectivity() {
        return device.getConnectivity();
    }

    @Override
    public int getContactState() {
        return device.getContactState();
    }

    @Override
    public void setAttentionModel(int modeKey) {
        device.setAttentionModel(modeKey);
    }

    @Override
    public void setDevTaskSession(int modeKey) {
        CrimsonSDK.setDevTaskSession(modeKey);
    }
}
